import request from '@/utils/request'
// 水机


//获取水机列表
export function getContractList(params) {
    return request({
        url: '/property/contract',
        method: 'get',
        params
    })
}

//获取社区详情
export function getContractDetail(params) {
    return request({
        url: '/property/contract/detail',
        method: 'get',
        params
    })
}
export function getContractSelectList(params) {
    return request({
        url: '/property/contract/getSelectLists',
        method: 'get',
        params
    })
}
//添加
export function createContract(data) {
    return request({
        url: '/property/contract/create',
        method: 'post',
        data
    })
}

//修改
export function updateContract(data) {
    return request({
        url: '/property/contract/update',
        method: 'put',
        data
    })
}


//修改
export function changeContractFiledStatus(data) {
    return request({
        url: '/property/contract/changeFiledStatus',
        method: 'put',
        data
    })
}


//删除
export function delContract(data) {
    return request({
        url: '/property/contract/delete',
        method: 'delete',
        data
    })
}


